|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Host
A host is the internal representation of a deployment target. Hosts are either virtual or physical.
A physical host corresponds to a physical machine in an IP network. It contains one or more application instances, each of which defines its IP address and other characteristics required to connect to the corresponding application node running on the associated machine.
A virtual host correpsonds to a logical deployment target other than a physical machine, such as an application server. A virtual host has an associated parent host which represents the host on which the virtual host resides. Most often, this is a physical host, but virtual hosts can also be nested within other virtual hosts to any depth.
A host is also associated with a HostType
object, and
is able to define host-specific override values for the variables
defined by the host type. This feature allows the API user to search for
hosts by defining a particular value for a particular variable, and to
perform variable substitution based on the variable values defined
by a host.
Hosts may also be contained as members of one or more host sets, which allows hosts to be logically grouped tgether according to the needs of the client.
Method Summary | |
---|---|
boolean |
containsOverrideVarValue(java.lang.String varName)
Returns true if an override value for the variable with the passed name is defined by this host, false otherwise. |
boolean |
containsVarValue(java.lang.String varName)
Returns true if a variable with the passed name is available on this host, false otherwise. |
AppInstance |
getAppInstance(AppType appType)
Returns the app instance with the given type contained on this host, or null if no such app instance exists. |
AppInstance[] |
getAppInstances()
Returns all app instances contained on this host. |
AppInstance |
getAppLD()
Returns the local distributor app instance contained on this host, or null if no such app instance exists. |
AppInstance |
getAppMS()
Returns the master server app instance contained on this host, or null if no such app instance exists. |
AppInstance |
getAppRA()
Returns the remote agent app instance contained on this host, or null if no such app instance exists. |
java.lang.String |
getDescription()
Returns the description of this object. |
HostSetIDSet |
getHostSetIDSet()
Returns a set of host set IDS of which this host is a direct member. |
HostType |
getHostType()
Returns the host type associated with this host. |
HostTypeID |
getHostTypeID()
Returns the ID of the host type associated with this host. |
HostID |
getID()
Returns the ID of this object. |
InstalledComponentID |
getInstalledComponentID()
Returns the InstalledComponentID associated with this host. |
MachineInfo |
getMachineInfo()
Returns information describing the physical machine associated with this host, or null if this host does not directly contain an RA app instance. |
java.util.Date |
getMachineInfoTimestamp()
Returns the date that the machine info was last updated, or indicates that this host does not directly contain an RA app instance. |
java.lang.String |
getName()
Returns the name of this object. |
java.lang.String[] |
getOverrideVarNames()
Returns the names of all variables for which override values have been defined by this host. |
java.lang.String |
getOverrideVarValue(java.lang.String varName)
Returns the override value defined by this host for the variable with the passed name, or null if an override is not defined by this host. |
HostID |
getParentHostID()
Returns the ID of the parent host of this host, or null if this host is physical rather than virtual. |
java.lang.String[] |
getVarNames()
Returns the names of all variables available for use on this host, as defined by the associated host type. |
java.lang.String |
getVarValue(java.lang.String varName)
Returns the value currently defined for the variable with the passed name, or null if no variable with the passed name exists. |
Visibility |
getVisibility()
Returns the current visibility of this object. |
boolean |
isPrepared()
Returns true if this host is currently locally prepared, false otherwise. |
boolean |
isVirtual()
Returns true if this host is a virtual host, false if this host is a physical host. |
Method Detail |
---|
HostID getID()
HostTypeID getHostTypeID()
HostID getParentHostID()
boolean isPrepared()
Note that a host is locally prepared if its machine info is non-null and there are no active system services that need to be installed on it according to its current machine info settings.
boolean isVirtual()
InstalledComponentID getInstalledComponentID()
If this host is being used by a targetable component, the InstalledComponentID
refers to the targetable component installation that created this host. If this host is not
being used by a targetable component, the InstalledComponentID
value is null.
java.lang.String[] getVarNames()
getVarNames
in interface VariableSettingsSource
java.lang.String[] getOverrideVarNames()
getVarNames()
method. The order of the
names returned is undefined. If no variables are overridden,
the empty array is returned.
java.lang.String getVarValue(java.lang.String varName)
getVarValue
in interface VariableSettingsSource
varName
- the name of the variable to look up.
java.lang.String getOverrideVarValue(java.lang.String varName)
varName
- the name of the variable to look up.
boolean containsVarValue(java.lang.String varName)
containsVarValue
in interface VariableSettingsSource
varName
- the name of the variable to look up.
boolean containsOverrideVarValue(java.lang.String varName)
varName
- the name of the variable to look up.
HostType getHostType()
HostSetIDSet getHostSetIDSet()
AppInstance getAppInstance(AppType appType)
appType
- the type of the desired app instance.
AppInstance[] getAppInstances()
AppInstance getAppRA()
AppInstance getAppMS()
AppInstance getAppLD()
MachineInfo getMachineInfo()
getMachineInfoTimestamp()
java.util.Date getMachineInfoTimestamp()
getMachineInfo()
Visibility getVisibility()
java.lang.String getName()
java.lang.String getDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |